package org.eiahe.hr.attendance.domain.vo;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.eiahe.hr.attendance.domain.MonthlyAttendanceStat;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 月度考勤统计视图对象
 *
 * @author zhangnn
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = MonthlyAttendanceStat.class)
public class MonthlyAttendanceStatVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 统计ID
     */
    @ExcelProperty(value = "统计ID")
    private Long statId;

    /**
     * 工号
     */
    @ExcelProperty(value = "工号")
    private String employeeNo;

    /**
     * 员工姓名
     */
    @ExcelProperty(value = "员工姓名")
    private String employeeName;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 年份
     */
    @ExcelProperty(value = "年份")
    private Integer year;

    /**
     * 月份
     */
    @ExcelProperty(value = "月份")
    private Integer month;

    /**
     * 应出勤天数
     */
    @ExcelProperty(value = "应出勤天数")
    private Integer workDays;

    /**
     * 正常出勤天数
     */
    @ExcelProperty(value = "正常出勤天数")
    private Integer normalDays;

    /**
     * 迟到次数
     */
    @ExcelProperty(value = "迟到次数")
    private Integer lateCount;

    /**
     * 早退次数
     */
    @ExcelProperty(value = "早退次数")
    private Integer earlyCount;

    /**
     * 旷工次数
     */
    @ExcelProperty(value = "旷工次数")
    private Integer absenceCount;

    /**
     * 事假天数
     */
    @ExcelProperty(value = "事假天数")
    private BigDecimal personalLeaveDays;

    /**
     * 病假天数
     */
    @ExcelProperty(value = "病假天数")
    private BigDecimal sickLeaveDays;

    /**
     * 年假天数
     */
    @ExcelProperty(value = "年假天数")
    private BigDecimal annualLeaveDays;

    /**
     * 调休天数
     */
    @ExcelProperty(value = "调休天数")
    private BigDecimal compensatoryLeaveDays;

    /**
     * 其他假期天数
     */
    @ExcelProperty(value = "其他假期天数")
    private BigDecimal otherLeaveDays;

    /**
     * 状态(0正常 1异常)
     */
    @ExcelProperty(value = "状态")
    private String status;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
}
